﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace SIMS_GUI_Item
{
    public partial class AdminManagementUser : Form
    {
        public AdminManagementUser()
        {
            InitializeComponent();
        }

        private void Item_Account_Click(object sender, EventArgs e)
        {
            AdminManagementAccount ac = new AdminManagementAccount();
            ac.Show();
            this.Close();
        }

        private void Item_Course_Click(object sender, EventArgs e)
        {
            AdminManagementCourse cs = new AdminManagementCourse();
            cs.Show();
            this.Close();

        }

        private void Item_Help_Click(object sender, EventArgs e)
        {
            AdminManagementHelp hp = new AdminManagementHelp();
            hp.Show();
            this.Close();
        }

        private void btn_AddNewStudent_Click(object sender, EventArgs e)
        {
            /*
            AddNewStudent ans = new AddNewStudent();
            ans.BackColor = Color.FromArgb(50, 69, 101);
            ans.Width = 1215;
            ans.Height = 850;
            ans.Location = new Point(209, 175);
            ans.Show();
            */
            this.pnl_User.Controls.Clear();
            ans.TopLevel = false;
            ans.Dock = DockStyle.Fill;
            this.pnl_User.Controls.Add(ans);
            ans.Show();
        }

        private void btn_NameQuery_Click(object sender, EventArgs e)
        {
            /*
            NameQuery nq = new NameQuery();
            nq.BackColor = Color.FromArgb(50, 69, 101);
            nq.Width = 1215;
            nq.Height = 850;
            nq.Location = new Point(209, 175);
            nq.Show();
            */
            this.pnl_User.Controls.Clear();
            nq.TopLevel = false;
            nq.Dock = DockStyle.Fill;
            this.pnl_User.Controls.Add(nq);
            nq.Show();
        }

        private void btn_GradeQuery_Click(object sender, EventArgs e)
        {
            /*
            GradeQuery gq = new GradeQuery();
            gq.BackColor = Color.FromArgb(50, 69, 101);
            gq.Width = 1215;
            gq.Height = 850;
            gq.Location = new Point(209, 175);
            gq.Show();
            */
            this.pnl_User.Controls.Clear();
            gq.TopLevel = false;
            gq.Dock = DockStyle.Fill;
            this.pnl_User.Controls.Add(gq);
            gq.Show();
        }

        private void btn_StudentList_Click(object sender, EventArgs e)
        {
            /*
            StudentList sl = new StudentList();
            sl.BackColor = Color.FromArgb(50, 69, 101);
            sl.Width = 1215;
            sl.Height = 850;
            sl.Location = new Point(209, 175);
            sl.Show();
            */
            this.pnl_User.Controls.Clear();
            sl.TopLevel = false;
            sl.Dock = DockStyle.Fill;
            this.pnl_User.Controls.Add(sl);
            sl.Show();
        }

        AddNewStudent ans;
        NameQuery nq;
        GradeQuery gq;
        StudentList sl;
        private void AdminManagementUser_Load(object sender, EventArgs e)
        {
            ans = new AddNewStudent();
            nq = new NameQuery();
            gq = new GradeQuery();
            sl = new StudentList();
        }
    }
}
